package com.yc.oop1;

public class Test2 {
	public static void main(String[] args) {
		Computer c1 = new Computer();
		Computer c2 = new Computer();
		
		//每个对象的示例,各自的属性的值,不互通
		c1.size = 15.6;
		c1.color = "";
		c1.price = 0;
		
		c2.size = 16;
		c2.color = "";
		c2.price = 0;
		System.out.println( c2.size );
		
		//利用构造函数
		Computer c3 = new Computer(17, "黑色", 9999);
		System.out.println( c3.color );
	}
}
